/*
 * sock.h
 *
 *  Created on: 05/11/2011
 *      Author: utn_so
 */

#ifndef SOCK_H_
#define SOCK_H_




#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/un.h>
#include <arpa/inet.h>

#define EL_ERROR (-1)

int iniciarSocketA(int*);
int realizarBindA(int,struct sockaddr_in);
int realizarListenA(int);
int aceptarClienteA(int,struct sockaddr_in);
int conectarSocketA(int,struct sockaddr_in);
int enviarDatosA(char*,int,int);
int recibirDatosA(char*,int);
int cerrarSocketA(int*);

#endif

